package com.example.high_slope_electronic_sand_table.slopeDisplacement.dto;

import com.example.high_slope_electronic_sand_table.common.config.CustomFloatSerializer;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * 边坡位移监测-深层位移监测：深层位移
 */
@Data
@Schema(description = "深层位移")
public class DeepDisplacementMonitorDTO {
    @Schema(description = "设备ID")
    private String deviceId; // 设备ID
    @Schema(description = "深层位移")
    @JsonSerialize(using = CustomFloatSerializer.class)
    private Float deepDisplacement; // 深层位移
    @Schema(description = "深层位移告警等级")
    private Integer deepDisplacementWarningLevel; // 深层位移告警等级
    @Schema(description = "上报时间")
    private String datetime; // 上报时间
}
